/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.excesys.exsecs.access.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.excesys.exsecs.access.dto.AccessSupplierDTO;
import com.excesys.exsecs.access.entity.AccessSupplier;
import com.excesys.exsecs.access.vo.AccessSupplierExcelVO;
import com.excesys.exsecs.common.core.util.R;
import org.springframework.validation.BindingResult;

import java.text.ParseException;
import java.util.List;

/**
 * 供应商信息表
 *
 * @author lxc
 * @date 2024-05-06 17:44:39
 */
public interface AccessSupplierService extends IService<AccessSupplier> {

	/**
	 * 构建查询的 wrapper
	 * @param supplierDTO 查询条件
	 * @return LambdaQueryWrapper
	 */
	LambdaQueryWrapper buildQueryWrapper(AccessSupplierDTO supplierDTO);

	Page<AccessSupplier> getSupplierByPage(Page page, AccessSupplierDTO supplierDTO);

	String getNum() throws ParseException;

	List<AccessSupplierExcelVO> listAccessSupplier(AccessSupplierDTO supplierDTO);

	R importAccessSupplier(List<AccessSupplierExcelVO> excelVOList, BindingResult bindingResult);

}
